let skyBase = {money:0,seatNum:1,staff:[]}
let skyPeople = Restaurant.create(skyBase)

let redMeat = new Dishes('红烧肉',20,40,5)

let fish = new Dishes('鱼香肉丝',10,20,3)

let egg = new Dishes('番茄鸡蛋',5,10,2)

let beef = new Dishes('红烧牛腩',15,50,7)

let godJump = new Dishes('佛跳墙',100,30,10)

let smallWaiter = new Waiter(1,'小服务生',1600)
let smallCooker = new Cooker(2,'小厨师',8000)

skyPeople.addMenu([redMeat,fish,egg,beef,godJump])
skyPeople.hire([smallWaiter,smallCooker])
console.log(skyPeople)

function Guke(){
    this.gukeArray = []
    this.jiaru = function(person){
        this.gukeArray.push(person)
    }
    this.out = function(){
        this.gukeArray.shift()
    }
}
let yyh = new Visitor('顾客1')
let ding = new Visitor('顾客2')
let jiao = new Visitor('顾客3')
let guo = new Visitor('顾客4')
let queue = new Guke()
queue.jiaru(yyh)
queue.jiaru(ding)
queue.jiaru(jiao)
queue.jiaru(guo)
